import { useEffect } from "react"

let FinalDocument: Document

export default function useClientDocument(): Document | null {
  useEffect(() => {
    if (document) {
      FinalDocument = document
    }
  }, [])
  return FinalDocument
}